import Watcher from "../watcher.js"

export default function compileTextNode(node,vm){
    const key = RegExp.$1.trim()
    function cb (){
        node.textContent = JSON.stringify(vm[key])
        // node.textContent = 123456
    }
    new Watcher(cb)
}